<div>
    <div class="accordion">
        <div class="accordion-group">
            <div class="accordion-heading" sc-collapse="in">
                <a class="accordion-toggle" href="javascript:void(0)">
                    AppServer Verification
                </a>
            </div>
            <div class="accordion-body collapse">
                <div class="accordion-inner">
                    <div class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label" for="inputAppServer">AppServer</label>
                            <div class="controls">
                                <input ng-model="input.server" type="text" id="inputAppServer" class="span5" placeholder="For example: http://127.0.0.1:8080/app/v1/login">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="inputRoom">Room/Channel</label>
                            <div class="controls">
                                <input ng-model="input.room" type="text" id="inputRoom" placeholder="For exmaple: vchat">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="inputUser">Nick Name</label>
                            <div class="controls">
                                <input ng-model="input.user" type="text" id="inputUser" placeholder="For exmaple: alice">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="inputPasswd">Password</label>
                            <div class="controls">
                                <input ng-model="input.password" type="password" id="inputPasswd" placeholder="For exmaple: 12345678">
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <button class="btn" ng-click="checkAppServer()">Verify</button>
                            </div>
                        </div>
                    </div>
                    <div>
                        <ul>
                            <li ng-show="control.state >= 1" class="{{control| tc_filter_http}}">
                                Request: <a href="{{control.url}}" target="_parent">{{control.url}}</a>
                            </li>
                            <li ng-show="control.state >= 2" class="{{control| tc_filter_http}}">
                                Response: {{control.cost}}ms {{control.code}} {{control| tc_filter_status}}
                            </li>
                            <li ng-show="control.state >= 3 && control.code == 200">
                                AppID: {{db.appid}} <br/>
                                UserID: {{db.userid}} <br/>
                                <span ng-show='db.session'>SessionID: {{db.session}} <br/></span>
                                Nonce: {{db.nonce}} <br/>
                                Timestamp: {{db.timestamp}} <br/>
                                Token: {{db.token}} <br/>
                                GSLB: {{db.gslb}} <br/>
                                TURN: {{db.turn.username}} {{db.turn.password}} <br/>
                            </li>
                            <li ng-show="control.state >= 3 && control.code != 200">
                                <pre>{{control.message}}</pre>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>